﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace TiTi.tea.Api.Models
{
    public class Result
    {
        public int code { get; set; }
        public string msg { get; set; }
        public object data { get; set; }

        public static Result Error(string msg)
        {
            return new Result() { code = -1, msg = msg };
        }

        public static Result Success(object data=null)
        {
            return new Result() { code=1,msg="成功",data = data};
        }
    }
}